const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{ label: '采集批次号', prop: 'batchNumber' },
		{ label: '采集人', prop: 'gathererName' },
		{ label: '采集人所属单位', prop: 'unitName' },
		{ label: '采集时间', prop: 'createTime' },
		{ label: '采集内容', prop: 'gatherContent' },
		{
			label: '采集状态',
			prop: 'gatherStatus',
			custome: 'tag',
			dicData: [
				{ label: '校验中', value: 1, type: 'info' },
				{ label: '对比中', value: 2, type: 'warning' },
				{ label: '入库中', value: 3, type: 'primary' },
				{ label: '已完成', value: 0, type: 'success' },
				{ label: '入库失败', value: 4, type: 'danger' },
			],
		},
		{
			label: '操作',
			prop: 'menu',
			width: 300,
			fixed: 'right',
		},
	],
}

export const baseConfig: any = {
	pageName: '数据采集',
	dictcodes: [],
	rowKey: 'id',
	addLabel: '采集数据',
	tipLabel: 'batchNumber',
	exportMqTopic: '/ning/export',
	api: {
		index: 'view_dpGatherForm_page',
		delete: 'view_dpGatherForm_del',
		export: 'view_dpGatherForm_export',
	},
	auth: {
		index: 'view_dpGatherForm_page',
		delete: 'view_dpGatherForm_del',
		mulitSet: 'mulitSet',
		export: 'view_dpGatherForm_export',
	},
	menuBtn: [
		{
			icon: 'editor',
			label: '查看明细',
			type: 'primary',
			operate: 'Detail',
			auth: '',
			text: true,
			show: true,
		},
	],
	dialogConfig: {
		width: '65%',
	},
	searchConfig: {
		inline: true,
		showBtn: true,
		labelPosition: 'left',
		column: [
			{
				label: '批次号码',
				prop: 'batchNumber',
				type: 'input',
				span: 8,
			},
			{
				label: '采集状态',
				prop: 'gatherStatus',
				type: 'select',
				dicData: [
					{ label: '校验中', value: 1 },
					{ label: '对比中', value: 2 },
					{ label: '入库中', value: 3 },
					{ label: '已完成', value: 0 },
					{ label: '入库失败', value: 4 },
				],
				span: 8,
			},

			{
				label: '采集人',
				prop: 'gathererName',
				type: 'input',
				span: 8,
			},
			{
				label: '采集时间',
				prop: 'gatherFinishTimeBetween',
				type: 'datetimerange',
				format: 'YYYY年MM月DD HH:mm:ss',
				valueFormat: 'YYYY-MM-DD HH:mm:ss',
				span: 8,
			},
			{
				label: '采集单位',
				prop: 'unitName',
				type: 'input',
				span: 8,
			},
		],
	},
	detailConfig: {},
	tableConfig,
}
